import request from '@/utils/request'

//获取通知列表
export function getMessageList(data) {
  return request({
    url: '/system/message/page/list',
    method: 'post',
    data
  })
}

//添加消息
export function addMessage(data) {
  return request({
    url: '/system/message/add',
    method: 'post',
    data
  })
}

//更新消息
export function updateMessage(data) {
  return request({
    url: '/system/message/update',
    method: 'post',
    data
  })
}

//删除消息
export function deleteMessage(params) {
  return request({
    url: '/system/message/delete',
    method: 'get',
    params
  })
}